package com.glorystone.ins.domain;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.util.Date;

public @Data
class CapitalRecord {
    private Long tid;

    private Long ordId;

    private BigDecimal mustPremium;//应收付保费（应支付保费）

    private BigDecimal realPremium;

    private BigDecimal checkPremium;

    private Integer checkPremiumResult;

    private BigDecimal mustRebateAmt;//应收返返点（返佣费）

    private BigDecimal realRebateAmt;

    private BigDecimal followRpoundage;

    private BigDecimal realFollowRpoundage;//实收跟单手续费

    private BigDecimal chechFollowRpoundage;

    private Integer chechFollowResult;

    private BigDecimal replenishRpoundage;

    private BigDecimal realReplenishRpoundage;//实收补单手续费

    private BigDecimal checkReplenishRpoundage;

    private Integer checkReplenishResult;

    private BigDecimal payInsurerAmt;

    private Integer status;

    private Integer opponent;//对手方

    private Integer tradeType;

    private Integer capitalSourcr;

    private Integer checkResult;

    private Date ticketOpenTime;

    private Integer isTicketOpen;

    private BigDecimal invoiceValue;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonSerialize(using = CustomLocalDateSerializer.class)
    private LocalDate receiptDate;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonSerialize(using = CustomLocalDateSerializer.class)
    private LocalDate payDate;

    private Date checkDate;

    private String remark;

    private Long updateBy;

    private Date updateDate;

    private Long createBy;

    private Date createDate;

}